#
# Copyright 1991-2012 Mentor Graphics Corporation
#
# All Rights Reserved.
#
# THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION
# WHICH IS THE PROPERTY OF MENTOR GRAPHICS CORPORATION
# OR ITS LICENSORS AND IS SUBJECT TO LICENSE TERMS.
#
# To run this example, bring up the simulator and type the following at the prompt:
#     do run.do
# or, to run from a shell, type the following at the shell prompt:
#     vsim -c -do run.do
# (omit the "-c" to see the GUI while running from the shell)
# Remove the "quit -f" command from this file to view the results in the GUI.
#

# Create the library.
if [file exists work] {
    vdel -all
}
vlib work

# Compile the sources.
vcom nco_phase_tb.vhd \
         ../ipcore_dir/phase_counter.vhd \
         ../ipcore_dir/tic_counter.vhd  \
         ../ipcore_dir/sinrom.vhd   \
         ../ipcore_dir/cosrom.vhd   \
         ../ipcore_dir/phase_acc.vhd    \
         ../nco_phase.vhd   

vsim -c test_nco_phase 
do nco_phase_tb_wave.do
run 330us
# quit -f
